package io.github.novaframe.lock;

import java.lang.annotation.*;

/**
 * @author Melvin
 * @since 2018-01-07 1:01
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface CacheLock {

    @Deprecated
    String lockedPrefix() default ""; // redis锁key的前缀
    @Deprecated
    long timeOut() default 3000; // 轮询锁的时间, 3秒
    int expireTime() default 30; // key在redis里存在的时间，30S

}
